<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>ThinkPHP示例：Ajax表单提交</title>    
</head>
<body>
    <div class="main">
        <h2>我的第一个PHP程序</h2>
        <form id="form1" method='post' action="__URL__/add">
            <table cellpadding=2 cellspacing=2>
                <tr>
                    <td colspan="2"><div id="result" class="result" style="display:none;"></div></td>
                </tr>
                <tr>
                    <td >名字：</td>
                    <td ><input type="name" name="name" id="name"> </td>
                </tr>
                <tr>
                    <td >性别：</td>
                    <td><input name="sex" id="sex"   /></td>
                </tr>
                <tr>
                    <td >年龄：</td>
                    <td><input name="age" id="age"   /></td>
                </tr>
                <tr>
                    <td><input type="hidden" name="ajax" value="1"></td>
                    <td><input type="submit"  class="button" value="提 交"> <input type="reset" class="button" value="清 空"></td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>